package com.xy.user.domain;


import com.xy.core.init.mysql.BaseEntity;
import com.xy.core.init.mysql.annotation.Column;
import com.xy.core.init.mysql.annotation.Entity;
import com.xy.core.init.mysql.annotation.Id;
import com.xy.core.init.mysql.annotation.Table;

import java.util.Date;

/**
 * 
* 类名称：用户
 */
@Entity
@Table(name="czj_xy_user",describe = "用户")
public class Xyuser extends BaseEntity {
	@Id
	@Column(length = 19,describe = "用户id",inputType = "hidden")
	private String userId;		//用户id
	@Column(length = 19,describe = "用户名",inputType = "text")
	private String username;	//用户名
	@Column(length = 40,describe = "密码",inputType = "text")
	private String password; 	//密码
	@Column(length = 19,describe = "昵称",inputType = "text")
	private String nickname;
	@Column(describe = "最后登录时间",inputType = "date")
	private Date lastLogin;	//最后登录时间
	@Column(length = 19,describe = "用户登录ip地址",inputType = "text")
	private String ip;			//用户登录ip地址
	@Column(length = 2,describe = "状态",inputType = "hidden",defalt = "0")
	private Integer status;		//状态

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}


	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}
}
